(function () {
    var configFatory = function (env){
        var baseConfig = {
            baseUrl: '/api',//在axios请求的URL前会添加baseUrl
            devServerProxyPattern: '^/api',//devServer对/api开头的请求会进行代理
            serverUrl: 'http://127.0.0.1:8888/',//devServer代理地址
        }
        if(env==='production'){
            baseConfig.envDes = 'production'
        }else if(env==='development'){
            baseConfig.envDes = 'development'
        }
        return baseConfig
    }
    return configFatory
})()